return {
  cmd = {
    "clangd",
    "--background-index",
    "--compile-commands-dir=build",
    "--clang-tidy",
    "--completion-style=detailed",
    "--header-insertion=iwyu",
  },
  filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
  root_dir = function(fname)
    return require("lspconfig.util").root_pattern(
      "compile_commands.json",
      "compile_flags.txt",
      ".git"
    )(fname)
  end,
}
